﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IUploading
{
    public interface IServer
    {       
        /// <summary>
        /// 接口返回信息, 需要向向客户端回复
        /// </summary>
        event TransferResponsedEventHandler TransferResponsed; 
        /// <summary>
        /// 接口操作超时事件
        /// </summary>
        event TransferTimeoutEventHandler TransferTimeout;
        bool Running { get; }
        string ErrorMessage { get; }
        bool StartServer();
        void Close();
    }
}
